/** 
 * Project Name:medshop-core-forws 
 * File Name:WebServiceOrderDaoImpl.java 
 * Package Name:com.ym.b2b.order.dao.impl 
 * Date:2016年9月22日下午3:39:53 
 * Copyright (c) 2016, hzbjcym@163.com
 */ 
package com.ym.b2b.order.dao.impl;

import java.util.List;

import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;

import com.ym.b2b.commons.dao.BaseDao;
import com.ym.b2b.order.dao.WebServiceOrderDao;
import com.ym.b2b.order.sqlbean.WebServiceOrder;
import com.ym.b2b.order.sqlbean.WebServiceOrderItem;

/** 
 * @ClassName: WebServiceOrderDaoImpl 
 * @Author cym
 * @Date 2016年9月22日 下午3:39:53 
 * @Modify  
 * @CopyRight 珍诚医药在线股份有限公司 
 */
@Repository
public class WebServiceOrderDaoImpl<T> extends BaseDao<T> implements WebServiceOrderDao{

	@Override
	public List<WebServiceOrder> getOrderList(WebServiceOrder order) throws DataAccessException{
		return list("WebServiceOrder.getOrderList",order);
	}

	@Override
	public List<WebServiceOrderItem> getOrderItemList(WebServiceOrder order)
			throws DataAccessException {
		return list("WebServiceOrder.getOrderListItem",order);
	}

	@Override
	public int updateOrder(WebServiceOrder order) throws DataAccessException {
		return update("WebServiceOrder.updateOrder",order);
	}

	@Override
	public int updateOrderItemForOos(WebServiceOrder order) throws Exception {
		return update("WebServiceOrder.updateOrderItemForOos",order);
	}

}
